<template>
  <div class="app-container home-container">
    <!-- 背景装饰：彩云/气泡/手绘元素（可用CSS或背景图） -->
    <div class="cloud-bg"></div>

    <div class="content-wrapper">
      <!-- Logo / 名称 -->
      <h1 class="brand-title">顽皮彩云</h1>

      <h1 class="brand-title">施工中。。。</h1>
      <!-- Slogan（一句话介绍你） -->
      <p class="slogan">用童心看世界，把生活画成童话 ✨</p>

      <!-- 简短介绍 -->
      <div class="intro">
        <p>这里是顽皮彩云的创意小窝～</p>
        <p>分享手绘插画 · 生活灵感 · 治愈故事 · 奇思妙想</p>
      </div>

      <!-- 行动按钮 -->
      <div class="action-buttons">
        <el-button type="primary" size="large" @click="toContent">看看我的作品</el-button>
        <el-button size="large" @click="toLogin">顽皮彩云管理系统登录</el-button>
      </div>

      <!-- 社交媒体 / 联系方式（可选） -->
      <div class="footer-links">
        <span>关注我：</span>
        <a href="https://weibo.com/xxx" target="_blank">微博</a> ·
        <a href="https://www.xiaohongshu.com/user/xxx" target="_blank">小红书</a> ·
        <a href="mailto:wanpicaiyun@example.com">邮箱</a>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Home",
  methods: {
    toLogin() {
      this.$router.push({ path: '/login' });
    },
    toContent() {
      // 可以跳转到你的作品页、文章列表页等
      // 比如：this.$router.push('/posts')
      window.open('https://your-social-link.com', '_blank');
    }
  }
};
</script>

<style scoped lang="scss">
.home-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #fef6f9 0%, #e6f2ff 100%);
  overflow: hidden;
  padding: 20px;
  box-sizing: border-box;
}

// 背景彩云装饰（纯CSS实现，轻量）
.cloud-bg {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, #ffccdd 0%, transparent 70%),
              radial-gradient(circle at top left, #cce6ff 0%, transparent 70%),
              radial-gradient(circle at bottom right, #d4f1c0 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.brand-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ff6b9d;
  margin: 0 0 12px;
  font-family: 'Comic Sans MS', 'Marker Felt', cursive, sans-serif;
  text-shadow: 2px 2px 0 #ffe0ec;
}

.slogan {
  font-size: 1.2rem;
  color: #5a5a5a;
  margin: 0 0 24px;
  font-style: italic;
}

.intro {
  margin: 20px 0;
  color: #444;
  line-height: 1.6;
}

.action-buttons {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;

  ::v-deep .el-button {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
  }

  ::v-deep .el-button--primary {
    background: #ff6b9d;
    border-color: #ff6b9d;
  }
}

.footer-links {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #888;

  a {
    color: #ff6b9d;
    text-decoration: none;
    margin: 0 4px;

    &:hover {
      text-decoration: underline;
    }
  }
}

// 响应式适配
@media (max-width: 600px) {
  .brand-title {
    font-size: 2.2rem;
  }

  .slogan {
    font-size: 1rem;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
}
</style>